package org.example.erp.enums;
import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum OrderTypeEnum {
    Customer_Order(0,"客户订单"),
    Stocking_Orders(1,"备货订单"),
    Sample_Order(2,"样品订单"),
    Return_Orders(3,"退货订单");
    @EnumValue // 将此注解标记在枚举类的字段上，表示数据库存的值是此字段的值
    @JsonValue // 将此注解标记在枚举类的字段上，表示序列化时将此字段的值返回给前端
    private final int typeCode;
    private final String desc;

    OrderTypeEnum(int typeCode, String desc) {
        this.typeCode = typeCode;
        this.desc = desc;
    }

}


